package com.enjoyor.soa.traffic.server.tpcms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.enjoyor.soa.traffic.frame.configure.AopConfig;
import com.enjoyor.soa.traffic.frame.configure.DruidConfig;
import com.enjoyor.soa.traffic.frame.configure.DubboConfig;
import com.enjoyor.soa.traffic.frame.configure.ExceptionConfig;
import com.enjoyor.soa.traffic.frame.configure.LoggerConfig;
import com.enjoyor.soa.traffic.frame.configure.MyBatisConfig;
import com.enjoyor.soa.traffic.frame.configure.MyBatisMapperScannerConfig;
import com.enjoyor.soa.traffic.frame.configure.RedisConfig;
import com.enjoyor.soa.traffic.frame.configure.UtilConfig;

@SpringBootApplication
@EnableTransactionManagement
@ComponentScan(basePackages = { "com.enjoyor.soa.traffic.core.tpcms" })
@Import({ AopConfig.class, ExceptionConfig.class, MyBatisConfig.class, MyBatisMapperScannerConfig.class,
        RedisConfig.class, UtilConfig.class, LoggerConfig.class, DubboConfig.class })
public class ServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServerApplication.class, args);
    }

}
